package com.yaolong.api.modules.gen.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import com.yaolong.commons.base2.BaseDomain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 数据源配置表
 * </p>
 *
 * @author yaolonga
 * @since 2022-12-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("gen_data_source")
@ApiModel(value="DataSource对象", description="数据源配置表")
public class DataSource extends BaseDomain {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "关键字")
    @TableId(value = "DBInfo_ID", type = IdType.AUTO)
    private Long dbinfoId;

    @ApiModelProperty(value = "数据源别名")
    @TableField("DB_Alias")
    private String dbAlias;

    @ApiModelProperty(value = "数据源驱动")
    @TableField("DB_Driver")
    private String dbDriver;

    @ApiModelProperty(value = "数据连接url")
    @TableField("DB_Url")
    private String dbUrl;

    @ApiModelProperty(value = "用户名")
    @TableField("DB_User_Name")
    private String dbUserName;

    @ApiModelProperty(value = "用户密码")
    @TableField("DB_Password")
    private String dbPassword;

    @ApiModelProperty(value = "数据类型")
    @TableField("DB_Type")
    private String dbType;

    @TableField("DB_Name")
    private String dbName;


}
